import axios from '~/plugins/axios';
//查询所有部门
export const getDeptAll = function ({ commit, state }, preload) {
  return axios.get(process.env.baseUrl + '/department/listAll', {
    params: preload
  });
};
//查询部门子集机构
export const getDepartment = function({commit,state},preload){
    return axios.get(process.env.baseUrl + '/department/list',{
      params : preload
    })
};




